<?php

namespace frontend\models;

/**
 * @author  shuang
 * @date    2016-10-29 9:36:24
 * @version V1.0
 * @desc    
 */
use common\models\UserAccount;

class WB_UserAccount extends UserAccount {
    /*
     * 添加账户
     */

    public static function addAccount($userid) {
        $useraccount = new WB_UserAccount();
        $useraccount->userid = $userid;
        $useraccount->amount = 0;
        $useraccount->rebate_amount = 0;
        return $useraccount->save();
    }

}
